package org.batatasframework.support.database.sql.spi;

import org.batatasframework.support.database.sql.TableInstance;
import org.batatasframework.support.database.sql.where.QueryFragment;
import org.batatasframework.support.database.sql.where.QueryFragmentAppender;
import org.batatasframework.support.definition.QueryDefinition;
import org.batatasframework.support.event.HttpRequestAccessor;

/**
 * <pre>
 * 用于查询条件的处理
 * </pre>
 * @author jackson
 *
 */
public interface QueryFragmentCriterion extends QueryFragmentAppender{
	
	void newQuery(QueryDefinition queryDefine, HttpRequestAccessor paramAccessor, String key) throws Exception;
//	QueryFragment newQuery(QueryDefinition queryDefine, Opt opt, String[] values) throws Exception;
	
//	QueryFragment simpleQuery(String simpleQuery);
	
	QueryFragment simpleQuery(TableInstance tableInstance, String simpleQuery);
	
//	QueryFragmentBuilder newQueryBuilder(String fieldName) throws Exception;
}
